<?php

class ValidationException extends Exception
{

  protected $errors;

  public function getErrors()
  {
    return $this->errors;
  }

  public function __construct(/*array */$errors = null, $code = 0)
  {
    $this->errors = /*(array) */$errors;
    parent::__construct('Validation Exception', $code);
  }

}
